package cn.demo.service.impl;

import cn.demo.dao.IDemoDAO;
import cn.demo.dao.base.IBaseDAO;
import cn.demo.domain.Demo;
import cn.demo.service.IDemoService;
import cn.demo.service.base.AbstractBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by lixiangjun on 2017/7/25.
 */
@Component("DemoServiceImpl")
public class DemoServiceImpl extends AbstractBaseService<Demo, IBaseDAO<Demo>> implements IDemoService<Demo, IBaseDAO<Demo>> {

    @Autowired
    private IDemoDAO<Demo> demoDAO;


    @Override
    public Demo findOne(Map condition) {
        return demoDAO.findOne(condition);
    }

    @Override
    public IBaseDAO<Demo> getDao() {
        return demoDAO;
    }
}
